package cn.wolfcode.business.service;

import java.io.InputStream;
import java.util.List;
import cn.wolfcode.business.domain.BusCarPackageAudit;
import cn.wolfcode.business.vo.CarPackageAuditVO;
import cn.wolfcode.business.vo.HistoryListVO;

/**
 * 套餐审核Service接口
 * 
 * @author wolfcode
 * @date 2025-04-10
 */
public interface IBusCarPackageAuditService 
{
    /**
     * 查询套餐审核
     * 
     * @param id 套餐审核主键
     * @return 套餐审核
     */
    public BusCarPackageAudit selectBusCarPackageAuditById(Long id);

    /**
     * 查询套餐审核列表
     * 
     * @param busCarPackageAudit 套餐审核
     * @return 套餐审核集合
     */
    public List<BusCarPackageAudit> selectBusCarPackageAuditList(BusCarPackageAudit busCarPackageAudit);

    /**
     * 新增套餐审核
     * 
     * @param busCarPackageAudit 套餐审核
     * @return 结果
     */
    public int insertBusCarPackageAudit(BusCarPackageAudit busCarPackageAudit);

    /**
     * 修改套餐审核
     * 
     * @param busCarPackageAudit 套餐审核
     * @return 结果
     */
    public int updateBusCarPackageAudit(BusCarPackageAudit busCarPackageAudit);

    /**
     * 批量删除套餐审核
     * 
     * @param ids 需要删除的套餐审核主键集合
     * @return 结果
     */
    public int deleteBusCarPackageAuditByIds(Long[] ids);

    /**
     * 删除套餐审核信息
     * 
     * @param id 套餐审核主键
     * @return 结果
     */
    public int deleteBusCarPackageAuditById(Long id);

    //根据auditId修改processInstanceId
    void updateInstanceIdById(Long auditId, String processInstanceId);

    InputStream getProcessImg(Long instanceId);

    /*流程撤销*/
    int processCancel(Long id);

    List<HistoryListVO> getHistoryTasks(Long instanceId);

    //查询待办任务
    List<BusCarPackageAudit> todoTasks(BusCarPackageAudit busCarPackageAudit);

    /**
     * 审批功能
     * @param vo
     * @return
     */
    void audit(CarPackageAuditVO vo);
}
